FROM node:16.15.1-slim as builder
MAINTAINER SelectedName
WORKDIR /usr/ynubeggar-views
COPY . .
RUN npm install --force
RUN mkdir -p /usr/html

RUN npm run build --prod

FROM nginx:1.17

COPY --from=builder /usr/ynubeggar-views/www /usr/html

COPY ./nginx-angular.conf /etc/nginx/conf.d/default.conf

